#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QResizeEvent>
#include <QMainWindow>
#include "ui_compoments/clickablelabel.h"
#include "addjobpospage.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

// protected:
//     // debug用
//     void resizeEvent(QResizeEvent *event) override;

private:
    Ui::MainWindow *ui;
    ClickableLabel *m_gitPageBtn;
    ClickableLabel *m_homePageBtn;
    ClickableLabel *m_addJobPosBtn;
    ClickableLabel *m_manageJobPosBtn;
    ClickableLabel *m_interviewReviewBtn;
    ClickableLabel *m_profileBtn;
    ClickableLabel *m_profileTip;

    AddJobPosPage *m_addJobPosPage = nullptr;
private:
    void initUi();
    void initSlots();
    // 导航项选中处理函数
    void setNavItemSelected(ClickableLabel* target);

private slots:
    // Git页面按钮点击
    void onGitPageClicked();
    // 个人资料按钮点击
    void onProfileClicked();
};
#endif // MAINWINDOW_H
